-- GENERATED SPELL FOR [Fiendish Imp] --


function spell0_17267(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(30050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17267', 2000, 1)
end

function Sorts_17267(pUnit, Event)
local choix_sorts_17267 = math.random(0, 0)
if choix_sorts_17267 == 0 then
pUnit:RegisterEvent('spell0_17267', 1, 1)
end
end

function mob17267_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17267', math.random(1500, 3000), 1)
end

function mob17267_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17267_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17267_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17267, 1, 'mob17267_Action')
RegisterUnitEvent(17267, 2, 'mob17267_Leave')
RegisterUnitEvent(17267, 3, 'mob17267_Kill')
RegisterUnitEvent(17267, 4, 'mob17267_Die')
